<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<link type="text/css" rel="stylesheet" href="/neu5_yuejian/Public/assets/css/bootstrap.min.css">
<script type="text/javascript" src="/neu5_yuejian/Public/assets/js/jquery-2.2.1.min.js"></script>
<script type="text/javascript" src="/neu5_yuejian/Public/assets/js/bootstrap.min.js"></script>
</head>
</html>

      <div class="templatemo-flex-row">
      <div class="templatemo-sidebar">
        <header class="templatemo-site-header">
          <div class="square"></div>
          <h1>约健</h1>
        </header>
        <div class="profile-photo-container">
          <img src="/neu5_yuejian/Public/Admin/assets/img/logo.jpg" alt="Profile Photo" class="img-responsive">  
          <div class="profile-photo-overlay"></div>
        </div>      
        <!-- Search box -->
        <form class="templatemo-search-form" role="search">
          <div class="input-group">
              <button type="submit" class="fa fa-search"></button>
              <input type="text" class="form-control" placeholder="Search" name="srch-term" id="srch-term">           
          </div>
        </form>
        <div class="mobile-menu-icon">
            <i class="fa fa-bars"></i>
          </div>
        <nav class="templatemo-left-nav">          
          <ul>
            <li><a href="<?php echo U('Master/index');?>"><i class="fa fa-database fa-fw"></i>大师管理</a></li>
            <li><a href="<?php echo U('CheckMaster/index');?>"><i class="fa fa-home fa-fw"></i>大师审核管理</a></li>
            <li><a href="<?php echo U('Notice/index');?>"><i class="fa fa-bar-chart fa-fw"></i>推送管理</a></li>

            <li><a href="<?php echo U('Activity/activities');?>"><i class="fa fa-database fa-fw"></i>活动管理</a></li>
            <li><a href="<?php echo U('Game/games');?>"><i class="fa fa-home fa-fw"></i>比赛管理</a></li>
            <li><a href="<?php echo U('Prize/prizes');?>"><i class="fa fa-bar-chart fa-fw"></i>奖品管理</a></li>

            <li><a href="<?php echo U('Course/courselist');?>"><i class="fa fa-database fa-fw"></i>课程管理</a></li>
            <li><a href="<?php echo U('Video/videolist');?>"><i class="fa fa-home fa-fw"></i>视频管理</a></li>

            <li><a href="<?php echo U('Club/clubs');?>"><i class="fa fa-bar-chart fa-fw"></i>俱乐部管理</a></li>

            <li><a href="<?php echo U('Index/index');?>"><i class="fa fa-home fa-fw"></i>登录</a></li>
            <li><a href="<?php echo U('Index/logout');?>"><i class="fa fa-bar-chart fa-fw"></i>退出</a></li>

          </ul>  
        </nav>
      </div>









<!-- 
<span>欢迎：<?php echo ($username); ?></span> &nbsp;
[<a href="<?php echo U('Index/logout');?>">退出</a>]
</p>
<ul class="nav nav-pills nav-stacked">
  <li role="presentation"<?php if(CONTROLLER_NAME == 'archives') echo ' class="active"';?>><a href="<?php echo U('Archives/index');?>">文章管理</a></li>
  <li role="presentation"<?php if(CONTROLLER_NAME == 'Category') echo ' class="active"';?>><a href="<?php echo U('Category/index');?>">栏目管理</a></li>
  <li role="presentation"<?php if(CONTROLLER_NAME == 'Users') echo ' class="active"';?>><a href="<?php echo U('Users/index');?>">管理员</a></li>
</ul> -->
       <script type="text/javascript" src="/neu5_yuejian/Public/Admin/assets/js/bootstrap-filestyle.min.js"></script>
    <script type='text/javascript' src='/neu5_yuejian/Public/Admin/assets/js/jquery-1.11.2.min.js'></script>
       <script type="text/javascript" src="/neu5_yuejian/Public/Admin/assets/js/jquery-migrate-1.2.1.min.js"></script>
    <script type='text/javascript' src='/neu5_yuejian/Public/Admin/assets/js/templatemo-script.js'></script>


    <link rel="stylesheet" href="/neu5_yuejian/Public/Admin/assets/css/bootstrap.min.css" media="all" rel="stylesheet" type="text/css" />
<!-- <link rel="stylesheet" href="/neu5_yuejian/Public/Admin/assets/css/font-awesome.min.css" media="all" rel="stylesheet" type="text/css" /> -->
<link rel="stylesheet" href="/neu5_yuejian/Public/Admin/assets/css/templatemo-style.css" media="all" rel="stylesheet" type="text/css" />


 <!--  <link rel="stylesheet" href="/neu5_yuejian/Public/Admin/assets/css/1.css" media="all" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="/neu5_yuejian/Public/Admin/assets/css/2.css" media="all" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="/neu5_yuejian/Public/Admin/assets/css/style.css" media="all" rel="stylesheet" type="text/css" /> -->
	<title>奖品管理</title>
</head>
<body>
<div class="templatemo-content col-1 light-gray-bg">
  <div class="templatemo-top-nav-container">
    <div class="row">
      <nav class="templatemo-top-nav col-lg-12 col-md-12">
        <ul class="text-uppercase">
          <li><a href="" class="active">奖品管理</a></li>
          <li><a class="active" href="/neu5_yuejian/index.php/Admin/Prize/addPrize">新增  <i class="glyphicon glyphicon-plus"></i></a></li>
        </ul>  
      </nav> 
    </div>
  </div>
<div class="templatemo-content-container">
  <div class="templatemo-content-widget no-padding">
    <div class="panel panel-default table-responsive">
       <table class="table table-striped table-bordered templatemo-user-table">
        <thead>
	      <tr>
		    <td><a href="" class="white-text templatemo-sort-by">奖品编号<span class="caret"></span></a></td>
		    <td><a href="" class="white-text templatemo-sort-by">奖品名称<span class="caret"></span></a></td>
		    <td><a href="" class="white-text templatemo-sort-by">奖品说明<span class="caret"></span></a></td>
		    <td><a href="" class="white-text templatemo-sort-by">运动值<span class="caret"></span></a></td>
        <td><a href="" class="white-text templatemo-sort-by">图片1<span class="caret"></span></a></td>
        <td><a href="" class="white-text templatemo-sort-by">图片2<span class="caret"></span></a></td>
        <!-- <td><a href="" class="white-text templatemo-sort-by">图片3<span class="caret"></span></a></td>
		    <td><a href="" class="white-text templatemo-sort-by">用户编号<span class="caret"></span></a></td> -->
		    
        <td>修改</td>
        <td>删除</td>
	</tr>
   </thead>

   <tbody>      
         <?php if(is_array($prizes)): $i = 0; $__LIST__ = $prizes;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
                    <td><?php echo ($i); ?></td>
                    <td><?php echo ($vo["p_name"]); ?></td>
                    <td><?php echo ($vo["p_explanation"]); ?></td>
                    <td><?php echo ($vo["p_value"]); ?></td>                 
                  
                    <td><img src="/neu5_yuejian/Public/upload/<?php echo ($vo["p_pic1"]); ?>" width="60"></td>
                    <td><img src="/neu5_yuejian/Public/upload/<?php echo ($vo["p_pic2"]); ?>" width="60"></td>
                    <!-- <td><img src="/neu5_yuejian/Public/upload/<?php echo ($vo["p_pic3"]); ?>" width="60"></td>
                    <td><?php echo ($vo["u_id"]); ?></td> -->
                  
                    
              <td>
              <a class="btn btn-info" href="/neu5_yuejian/index.php/Admin/Prize/editPrize/p_id/<?php echo ($vo["p_id"]); ?>"><i class="glyphicon glyphicon-pencil">修改</i></a>
              </td>
              <td>
              <a href="/neu5_yuejian/index.php/Admin/Prize/delPrize/p_id/<?php echo ($vo["p_id"]); ?>" class="btn btn-danger" onclick="return confirm('你确定要删除吗？')"><i class="glyphicon glyphicon-trash">删除</i></a>
              </td>

                 
            </tr><?php endforeach; endif; else: echo "" ;endif; ?>      
   </tbody>
</table>
</div></div>
            <div class="jogger col-md-10   col-sm-offset-3 col-md-offset-4 col-xs-offset-2" >
            <p><?php echo ($link); ?></p>
           </div>
           </div>
           
</body>
</html>